#include <iostream>

int main() {
	int year; // input year
	std::cin >> year;
	
	if ((year % 400 == 0) || ((year % 4 == 0) && (year % 100 != 0)))
		std::cout << "yes" << std::endl;
	else
		std::cout << "no" << std::endl;

	return 0;
}